name: Format Checks

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '*'

jobs:
  format_checks:
    runs-on: ubuntu-latest
    container: px4io/px4-dev-clang:2021-05-04
    steps:
    - uses: actions/checkout@v1
    - name: install clang-format-6.0
      run: apt install -y clang-format-6.0
    - name: check_format
      run: ./tools/format.sh 0

